import {
	luoReuqest
} from ".."


/* 添加患者 */

export const addPatientApi = (data) => {
	return luoReuqest.post("/patient/add", data)
}


/* 获取患者列表 */

export const patinetListApi = () => {
	return luoReuqest.get("/patient/mylist")
}

/* 根据id删除患者 */

export const deletePatinetIdApi = (id) => {
	return luoReuqest.delete(`patient/del/${id}`)
}

/* 获取患者详情信息 */

export const patientDetailApi = (id) => {
	return luoReuqest.get(`patient/info/${id}`)
}

/* 更新患者信息 */

export const updatePatientApi = (data) => {
	return luoReuqest.put("/patient/update", data)
}